package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-03-11
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_CONTRACT_TYPEOF")
@ApiModel(value="TblContractTypeof对象", description="")
public class TblContractTypeofMySql implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("TYPEID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private BigDecimal typeid;

    @TableField("TYPENAME")
    private String typename;

    @TableField("CREATESTAFF")
    private BigDecimal createstaff;

    @TableField("CREATETIME")
    @JSONField(format = "yyyy-MM-dd")
    private Date createtime;

    @TableField("ORGID")
    private BigDecimal orgid;

    @TableField("UPDATETIME")
    @JSONField(format = "yyyy-MM-dd")
    private Date updatetime;

    @TableField("UPDATESTAFF")
    private BigDecimal updatestaff;

    @TableField("SETTINGID")
    private String settingid;

    @TableField("PAGEURL")
    private String pageurl;

    @TableField("PARENTID")
    private BigDecimal parentid;

      @ApiModelProperty(value = "只能审计  nbsj")
      @TableField("TYPE")
    private String type;

    @Transient
    private List<TblContractTypeofMySql> childrenList = new ArrayList(0);


}
